package com.shopmall.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsInList {

    private int goods_in_list_id;
    private int goods_id;
    private int price_in;
    private int num;
    private String do_who;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date do_time;

    public int getGoods_in_list_id() {
        return goods_in_list_id;
    }

    public void setGoods_in_list_id(int goods_in_list_id) {
        this.goods_in_list_id = goods_in_list_id;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public int getPrice_in() {
        return price_in;
    }

    public void setPrice_in(int price_in) {
        this.price_in = price_in;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getDo_who() {
        return do_who;
    }

    public void setDo_who(String do_who) {
        this.do_who = do_who;
    }

    public Date getDo_time() {
        return do_time;
    }

    public void setDo_time(Date do_time) {
        this.do_time = do_time;
    }
}
